package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 活动徽章规则
 */
@Setter
@Getter
@Document(collection = "activity_badge_rule")
public class ActivityBadgeRule extends EntityBase {

    @Indexed
    private String activityId;
    /**
     * 商品Id
     */
    @Indexed
    private String itemId;
    /**
     * 1、虚拟
     */
    private Integer itemType = 1;

    private String itemTitle;
    /**
     * 单位分
     */
    private Integer price = 0;
    /**
     * 活力值范围
     */
    private RewardValue rewardValue;
    /**
     * 优先级排序 1 越小排在前面
     */
    private Integer priority =0;


}
